widget: Mark the size as changed when it changes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 14 Oct 2020 01:20:08 +0000 (21:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Oct 2020 16:19:55 +0000 (12:19 -0400)
This notifies the AT context that the widgets size
has changed.

gtk/gtkwidget.c

index 5b5729dfdf90af5fa84c4343f1a93aaf33ca8374..29f595c55aea45cf45bbb01c4b5494be339956e1 100644 (file)
@@ -3811,7 +3811,6 @@ gtk_widget_allocate (GtkWidget    *widget,
 
   gtk_widget_adjust_size_allocation (widget, &adjusted);
 
-
   if (adjusted.width < 0 || adjusted.height < 0)
     {
       g_warning ("gtk_widget_size_allocate(): attempt to allocate %s %s %p with width %d and height %d",
@@ -3907,6 +3906,9 @@ gtk_widget_allocate (GtkWidget    *widget,
 
   gtk_widget_update_paintables (widget);
 
+  if (size_changed)
+    gtk_accessible_bounds_changed (GTK_ACCESSIBLE (widget));
+
 skip_allocate:
   if (size_changed || baseline_changed)
     gtk_widget_queue_draw (widget);